namespace Titarzhe\Design\Behavior\Strategy;

use Titarzhe\Design\Behavior\StrategyInterface;

class Context
{
	//算法类的引用
	private _strategy;
	//获取算法
	public function __construct(<StrategyInterface> strategy = null)
	{
		let this->_strategy = strategy;
	}
	//执行算法
	public function ContextInterface()
	{
		this->_strategy->AlgorithmInterface();
	}
}